package com.sharemarking.wa.platform.controller;

import com.sharemarking.wa.common.ResponseParams;
import com.sharemarking.wa.platform.service.ReportFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dxy
 */
@RequestMapping("reportForm")
@RestController
public class ReportFormController {
    @Autowired
    private ReportFormService reportFormService;

    /**
     * 获取统计列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getVehicleStatisticsList")
    public ResponseParams<?> getVehicleStatisticsList() throws Exception {
        return reportFormService.getVehicleStatisticsList();
    }

    /**
     * 获取统计列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getStatisticsList")
    public ResponseParams<?> getStatisticsList() throws Exception {
        return reportFormService.getStatisticsList();
    }


    /**
     * 获取订单列表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getOrderList")
    public ResponseParams<?> getOrderList() throws Exception {
        return reportFormService.getOrderList();
    }

    /**
     * 获取司机报表
     * @return
     * @throws Exception
     */
    @RequestMapping(value = "getDriverList")
    public ResponseParams<?> getDriverList() throws Exception {
        return reportFormService.getDriverList();
    }

}
